import request from "@/utils/request.js";
/**
 * 公共接口 实时公交类
 * 
 */




/**
 * 获取线路详请
 * @param {Object} data
 */
export function getLineAndStopDetailsApi(data) {
	return request.get("realBus/getLineAndStopDetails", data, {
		noAuth: true, ssgjFlag:true
	});
}

/**
 * 获取线路轨迹
 * @param {Object} data
 */
export function getRoutesAndStop(data) {
	return request.get("realBus/getRoutesAndStop", data, {
		noAuth: true, ssgjFlag:true
	});
}


/**
 * 获取实时信息
 * 
 */
export function getRealBusApi(data) {
	return request.get("realBus/getRealBus", data, {
		noAuth: true, ssgjFlag:true
	});
}

/**
 * 附近站点
 * 
 */
export function getNearStation(data) {
	return request.get("realBus/getNearStation", data, {
		noAuth: true, ssgjFlag:true
	});
}


/**
 * 线路详情
 * 
 */
export function addBrowsedLine(data) {
	return request.post("realBus/addBrowsedLine", data);
}

/**
 * 获取实时信息
 * 
 */
export function fetchRealBus(data) {
	return request.get("fetch_real_bus", data, {
		noAuth: true, ssgjFlag:true
	});
}
/**
 * 搜索线路
 * 
 */
export function searchRealBusLine(data) {
	return request.get("search_real_bus_line", data, {
		noAuth: true, ssgjFlag:true
	});
}

/**
 * 线路详情
 * 
 */
export function realbusLineDetail(data) {
	return request.get("realbus_line_detail", data, {
		noAuth: true, ssgjFlag:true
	});
}

/**
 * 线路详情
 * 
 */
export function collectLine(data) {
	return request.get("collect_line", data, {
		noAuth: true
	});
}

/**
 * 是否收藏线路
 * 
 */
export function isCollectLine(data) {
	return request.get("is_collect_line", data, {
		noAuth: true
	});
}
/**
 * 获取收藏线路
 * 
 */
export function getCollectRealBusLine(data) {
	return request.get("realBus/getCollectRealBusLine", data);
}

/**
 * 搜索线路及站点
 * @param {Object} data
 */
export function searchLineAndStation(data) {
	return request.get("realBus/searchLineAndStation", data);
}

/**
 * 获取站点下面的线路
 * @param {Object} data
 */
export function getLineByStation(data) {
	return request.get("realBus/getLineByStation", data);
}



